﻿using System;

namespace Borg.AddOn
{
    [Serializable]
    public class CompositionPermissionHook : ICompositionPermissionHook
    {
        public virtual bool CanCreate(ExtensionType extensionType, out LogArgs log)
        {
            log = null;
            return true;
        }

        public virtual bool CanPlug(Slot slot, Plug plug, out LogArgs log)
        {
            log = null;
            return true;
        }

        public virtual bool CanTag(Slot slot, Plug plug, string tag, out LogArgs log)
        {
            log = null;
            return true;
        }

        public virtual bool CanUnplug(Slot slot, Plug plug, out LogArgs log)
        {
            log = null;
            return true;
        }

        public virtual bool CanUntag(Slot slot, Plug plug, string tag, out LogArgs log)
        {
            log = null;
            return true;
        }
    }
}

